<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>药物单位明细</title>
<script type="text/javascript" src="/jquery/jquery-1.7.js"></script>
<script type="text/javascript">
	function back() {
		window.location.href = "${ctx}/purchase!selectList.action";
	}
</script>
</head>
<body>
	<div id="view">
		<form action="${ctx}/purchase!addOrUpdate.action">
			<div id="id">
				<input type="hidden" name="t.id" value="${t.id}">
			</div>

			<div id="commonName">
				通用名称:<input type="text" name="t.medicine.commonName"
					value="${t.medicine.commonName}">
			</div>
			<div id="name">
				名称:<input type="text" name="t.medicine.name"
					value="${t.medicine.name}">
			</div>
			<div id="jixing">
				制剂,剂型:<input type="text" name="t.medicine.jixing"
					value="${t.medicine.jixing}">
			</div>
			<div id="guige">
				规格:<input type="text" name="t.medicine.guige"
					value="${t.medicine.guige}">
			</div>
			<div id="company">
				生产企业: <input type="text" name="t.medicine.company"
					value="${t.medicine.company}">
			</div>
			<div id="approvalNumber">
				批准文号:<input type="text" name="t.medicine.approvalNumber"
					value="${t.medicine.approvalNumber}">
			</div>
			<div id="lotNumber">
				批号:<input type="text" name="t.medicine.lotNumber"
					value="${t.medicine.lotNumber}">
			</div>
			<div id="unit">
				药物单位: <select name="t.medicine.unit">
					<c:forEach items="${unitlist}" var="unit">
						<c:if test="${unit.name==t.medicine.unit}">
							<option value="${t.medicine.unit}" selected="selected">${unit.name}</option>
						</c:if>
						<option value="${unit.name}">${unit.name}</option>
					</c:forEach>
				</select>
			</div>


			<div id="amount">
				药物数量:<input type="text" name="t.amount" value="${t.amount}">
			</div>

			<div id="offerCompany">
				供货企业:<select name="t.offerCompany">
					<c:forEach items="${companylist}" var="company">
						<c:if test="${company.company==t.offerCompany}">
							<option value="${company.company}" selected="selected">${company.company}</option>
						</c:if>
						<option value="${company.company}">${company.company}</option>
					</c:forEach>
				</select>
			</div>

			<div id="salesman">
				业务员:<input type="text" name="t.salesMan" value="${t.salesMan}">
			</div>

			<div id="status">
				验收质量:<select name="t.status">
					<c:forEach items="${statuslist}" var="status">
						<c:if test="${status.status==t.status}">
							<option value="${status.status}" selected="selected">${status.status}</option>
						</c:if>
						<option value="${status.status}">${status.status}</option>
					</c:forEach>
				</select>
			</div>

			<div id="valiStatus">
				验收结论:<input type="text" name="t.valiStatus" value="通过" readonly=true>
			</div>

			<div id="valiPerson">
				验收人:<input type="text" name="t.valiPerson" value="admin" readonly=true>
			</div>

			<div id="save">
				<input type="submit" value="保存">
			</div>

			<div id="back">
				<input type="button" value="返回" onclick="back()">
			</div>
		</form>
	</div>
	<a href="${ctx}/main!backToIndex.action">返回到首页</a>
</body>
</html>